package com.dk.mapper;

import com.dk.pojo.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2022-07-08
 */
@Mapper
public interface UsersMapper extends BaseMapper<Users> {
    @Select("select url from menu m inner join menuandpart mp on m.id = mp.menuid\n" +
            "inner join partanduser pu on mp.partId=pu.partid\n" +
            "where pu.userid=#{id} and m.start=1")
    List<String> getPower(Integer id);
}
